package com.ruoyi.web.controller;


import com.ruoyi.common.business.service.YytTeamAssociationService;
import com.ruoyi.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author MrPing
 * @since 2022-09-05
 */
@RestController
@RequestMapping("/association")
public class YytTeamAssociationController {

    @Autowired
    private YytTeamAssociationService yytTeamAssociationService;

    @GetMapping("/getTeamInfo")
    public ResponseResult getTeamInfo(@RequestParam("teamId") String teamId){
        return ResponseResult.success(yytTeamAssociationService.getById(teamId));
    }

}
